<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>合众人寿公益平台客户管理系统</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link href="<%= request.getContextPath() %>/html/css/Main.css"
			rel="stylesheet" type="text/css" />
	 
	  <style>
body,ul,ol,dl,dd,p,h1,h2,h3,h4,h5,h6,form,input,textarea,select,td,th {
	margin: 0;
	padding: 0;
	font-family: "宋体", Arial, Helvetica, sans-serif;
}

li {
	list-style: none;
}

input {
	background: none;
}

.clear {
	zoom: 1;
}

.clear:after {
	content: "";
	display: block;
	clear: both;
}
.view  table{ width:89%;folat:center;text-align:center;}
.view  { padding-left:20px; padding-top:10px;width:800px;text-align:center}
.view  span{  height:28px; font-size:12px; line-height:28px; width:90px; text-align:right; display:inline-block;}
.view  .t2{width:180px;font-size:12px;color:#060606;text-align:left;}
</style>
	 <SCRIPT type="text/javascript">
	   function cc(){
	      document.form1.submit()
	   }
	 </SCRIPT>
	</head>
	<body>
		<div class="container">
			<div class="wrap clear">
				<div class="sub_wp_right">
					<div class="rt_tt">
						<h3 class="tittle">
							查看邮件
						</h3>
					</div>
					<div class="ct">
						<div class="view">
						   <form action="" name="form1">
							<table class="viewTable">
								<tr align="left">
									<td align="right" class="title">
										<span>发送日期：</span>
									</td>
									<td style="float: center;"  class="t2">
										${mailRecord.sendTime}
									</td>
								</tr>
								<tr>
									<td align="right" class="title">
										<span>接收人：</span>
									</td>
									<td  class="t2">
										${receives}
									</td>
								</tr>
								<tr>
									<td align="right" class="title">
										<span>抄送人：</span>
									</td>
									<td  class="t2">
										${copies}
									</td>
								</tr>
								<tr>
									<td align="right" class="title">
										<span>主题：</span>
									</td>
									<td  class="t2">
										${mailRecord.theme}
									</td>
								</tr>
								<tr>
								  <td align="right" class="title">
										<span>附件：</span>
									</td>
									<td rowspan="#request.upFiles.size()" class="t2">
										 <s:iterator value="#request.upFiles" var="file" status="status">
										     <input type="hidden" name="upFile" value="<s:property value="#file"/>" id="upFile<s:property value="#status.count"/>" > 
										     <a href="<%=request.getContextPath()%>/mail/downloadAttach.do?mailRecord.mail_id=${mailRecord.mail_id}&fileId=<s:property value="#status.count"/>" onclick="cc()"><s:property value="#file"/></a><br/>
										 </s:iterator>
									</td>
								</tr>
								<tr>
									<td align="right" class="title">
										<span>发送内容：</span>
									</td>
									<td  class="t2" >
										${mailRecord.content}
								
									</td>
								</tr>
							</table>
							</form>
							<div class="btn">
								<input type="button" value="返回"
									onclick="javascript :history.back(-1);" />
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

	</body>
</html>
